//
//  SelfSwitchItemInfo.m
//  JiaoX
//
//  Created by 尹桥印 on 14/11/16.
//  Copyright (c) 2014年 北京娇羞科技有限公司. All rights reserved.
//  具有选择功能的cell

#import "SelfSwitchItemInfo.h"
#import "UserDefaultsHelper.h"

@implementation SelfSwitchItemInfo
- (void)setOn:(BOOL)on
{
    _on = on;
    if(self.key){
        [UserDefaultsHelper setBool:on forKey:self.key];
    }
}

- (void)setKey:(NSString *)key
{
    _key = key;
    _on = [UserDefaultsHelper boolForKey:key];
}
@end
